<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI短文生成 - Vocabuddy词友星球</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background: linear-gradient(135deg, #0891b2, #7e22ce);
            height: 100vh;
            margin: 0;
            padding: 0;
            color: white;
        }
        .app-container {
            height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }
        .nav-bar {
            height: 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        .tab-bar {
            height: 80px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: fixed;
            bottom: 0;
            width: 100%;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: rgba(255, 255, 255, 0.7);
            font-size: 12px;
            transition: all 0.3s ease;
        }
        .tab-item.active {
            color: #ffffff;
        }
        .tab-icon {
            font-size: 24px;
            margin-bottom: 4px;
            position: relative;
        }
        .tab-item.active .tab-icon::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 5px;
            height: 5px;
            background-color: #ffffff;
            border-radius: 50%;
        }
        .content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            padding-bottom: 90px;
        }
        .story-container {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .story-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .story-title {
            font-size: 20px;
            font-weight: bold;
        }
        .story-theme {
            background: rgba(255, 255, 255, 0.2);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
        }
        .story-content {
            display: flex;
            flex: 1;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .story-illustration {
            flex: 0 0 40%;
            background: url('https://images.unsplash.com/photo-1614728263952-84ea256f9679?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80') center/cover;
            position: relative;
            overflow: hidden;
        }
        .pet-character {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 80px;
            background: url('https://images.unsplash.com/photo-1614027164847-1b28cfe1df60?ixlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80') center/cover;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.5);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
            z-index: 2;
        }
        .story-text {
            flex: 0 0 60%;
            padding: 20px;
            overflow-y: auto;
            font-size: 15px;
            line-height: 1.6;
        }
        .highlighted-word {
            color: #ef4444;
            font-weight: bold;
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
        }
        .highlighted-word:hover {
            text-decoration: underline;
            color: #f87171;
        }
        .word-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .highlighted-word:hover .word-tooltip {
            opacity: 1;
        }
        .story-actions {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }
        .crystal-button {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 12px 25px;
            border-radius: 30px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
            position: relative;
            overflow: hidden;
        }
        .crystal-button::before {
            content: '';
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
            z-index: -1;
            filter: blur(10px);
        }
        .crystal-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
        }
        .crystal-button:active {
            transform: translateY(1px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
        }
        .radar-chart {
            margin: 20px 0;
            height: 120px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }
        .radar-chart::before {
            content: '单词词频统计';
            position: absolute;
            top: 10px;
            left: 10px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
        }
        .radar-polygon {
            width: 80px;
            height: 80px;
            background: rgba(59, 130, 246, 0.3);
            clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
            position: relative;
        }
        .radar-polygon::before {
            content: '';
            position: absolute;
            top: 5px;
            left: 5px;
            right: 5px;
            bottom: 5px;
            background: rgba(59, 130, 246, 0.5);
            clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
        }
        .radar-label {
            position: absolute;
            font-size: 10px;
            color: rgba(255, 255, 255, 0.8);
        }
        .label-1 { top: 0; left: 50%; transform: translateX(-50%); }
        .label-2 { top: 38%; right: 0; }
        .label-3 { bottom: 0; right: 18%; }
        .label-4 { bottom: 0; left: 18%; }
        .label-5 { top: 38%; left: 0; }
        
        .planet-scene {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }
        .star {
            position: absolute;
            background: white;
            border-radius: 50%;
            opacity: 0.5;
            animation: twinkle 3s infinite;
        }
        @keyframes twinkle {
            0%, 100% { opacity: 0.2; }
            50% { opacity: 0.8; }
        }
        .spaceship {
            position: absolute;
            width: 40px;
            height: 20px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M21.92,11.6C19.9,6.91,16.1,4,12,4S4.1,6.91,2.08,11.6a1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20s7.9-2.91,9.92-7.6A1,1,0,0,0,21.92,11.6ZM12,18c-3.17,0-5.89-2.14-7.48-6C6.11,8.14,8.83,6,12,6s5.89,2.14,7.48,6C17.89,15.86,15.17,18,12,18ZM12,8a4,4,0,1,0,4,4A4,4,0,0,0,12,8Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,14Z"/></svg>') center/contain no-repeat;
            opacity: 0;
            transition: all 1s ease;
            z-index: 3;
        }
    </style>
</head>
<body>
    <div class="app-container">
        <div class="nav-bar">
            <div>
                <i class="fas fa-arrow-left mr-3"></i>
                <span>AI短文生成</span>
            </div>
            <div>
                <i class="fas fa-share-alt"></i>
            </div>
        </div>
        
        <div class="content">
            <div class="story-container">
                <div class="story-header">
                    <div class="story-title">星际探险</div>
                    <div class="story-theme">科幻主题</div>
                </div>
                
                <div class="story-content">
                    <div class="story-illustration">
                        <div class="planet-scene">
                            <!-- 动态生成的星星 -->
                            <div class="star" style="width: 2px; height: 2px; top: 10%; left: 20%; animation-delay: 0s;"></div>
                            <div class="star" style="width: 3px; height: 3px; top: 30%; left: 50%; animation-delay: 0.5s;"></div>
                            <div class="star" style="width: 1px; height: 1px; top: 70%; left: 80%; animation-delay: 1s;"></div>
                            <div class="star" style="width: 2px; height: 2px; top: 40%; left: 10%; animation-delay: 1.5s;"></div>
                            <div class="star" style="width: 2px; height: 2px; top: 60%; left: 30%; animation-delay: 2s;"></div>
                            <div class="star" style="width: 3px; height: 3px; top: 20%; left: 70%; animation-delay: 2.5s;"></div>
                            <div class="star" style="width: 1px; height: 1px; top: 80%; left: 40%; animation-delay: 3s;"></div>
                        </div>
                        <div class="spaceship" id="spaceship"></div>
                        <div class="pet-character"></div>
                    </div>
                    
                    <div class="story-text">
                        <p>在遥远的未来，人类已经发展出了先进的<span class="highlighted-word">interstellar<span class="word-tooltip">星际的</span></span>旅行技术。我们的主角，一位年轻的<span class="highlighted-word">astronaut<span class="word-tooltip">宇航员</span></span>，正驾驶着他的<span class="highlighted-word" id="spaceship-word">spaceship<span class="word-tooltip">宇宙飞船</span></span>穿越浩瀚的<span class="highlighted-word">galaxy<span class="word-tooltip">星系</span></span>。</p>
                        
                        <p>这艘飞船配备了最先进的<span class="highlighted-word">propulsion<span class="word-tooltip">推进</span></span>系统，能够达到接近光速的<span class="highlighted-word">velocity<span class="word-tooltip">速度</span></span>。飞船的<span class="highlighted-word">navigation<span class="word-tooltip">导航</span></span>系统由一个高度<span class="highlighted-word">sophisticated<span class="word-tooltip">复杂的</span></span>的AI控制，确保旅程的安全。</p>
                        
                        <div class="radar-chart">
                            <div class="radar-polygon"></div>
                            <div class="radar-label label-1">galaxy</div>
                            <div class="radar-label label-2">astronaut</div>
                            <div class="radar-label label-3">spaceship</div>
                            <div class="radar-label label-4">navigation</div>
                            <div class="radar-label label-5">velocity</div>
                        </div>
                        
                        <p>在一次例行的<span class="highlighted-word">expedition<span class="word-tooltip">探险</span></span>中，我们的宇航员发现了一个从未被<span class="highlighted-word">documented<span class="word-tooltip">记录</span></span>的<span class="highlighted-word">celestial<span class="word-tooltip">天体的</span></span>现象。一个巨大的<span class="highlighted-word">nebula<span class="word-tooltip">星云</span></span>中，隐藏着一个可能适合人类<span class="highlighted-word">habitation<span class="word-tooltip">居住</span></span>的行星。</p>
                        
                        <p>这个行星被一个奇特的<span class="highlighted-word">atmosphere<span class="word-tooltip">大气层</span></span>包围，其中含有未知的<span class="highlighted-word">elements<span class="word-tooltip">元素</span></span>。宇航员决定<span class="highlighted-word">descend<span class="word-tooltip">降落</span></span>到行星表面进行<span class="highlighted-word">exploration<span class="word-tooltip">探索</span></span>。</p>
                        
                        <p>在这个神秘的世界上，他发现了一种高度<span class="highlighted-word">evolved<span class="word-tooltip">进化的</span></span>的生命形式，它们似乎能够通过某种<span class="highlighted-word">telepathic<span class="word-tooltip">心灵感应的</span></span>方式进行交流。</p>
                    </div>
                </div>
                
                <div class="story-actions">
                    <button class="crystal-button">
                        <i class="fas fa-magic mr-2"></i> 改写剧情
                    </button>
                </div>
            </div>
        </div>
        
        <div class="tab-bar">
            <div class="tab-item">
                <div class="tab-icon"><i class="fas fa-book"></i></div>
                <div>学习</div>
            </div>
            <div class="tab-item">
                <div class="tab-icon"><i class="fas fa-planet-ringed"></i></div>
                <div>星球</div>
            </div>
            <div class="tab-item active">
                <div class="tab-icon"><i class="fas fa-users"></i></div>
                <div>社交</div>
            </div>
            <div class="tab-item">
                <div class="tab-icon"><i class="fas fa-store"></i></div>
                <div>商店</div>
            </div>
        </div>
    </div>
    
    <script>
        // 点击spaceship单词时的动画效果
        document.getElementById('spaceship-word').addEventListener('click', function() {
            const spaceship = document.getElementById('spaceship');
            const petCharacter = document.querySelector('.pet-character');
            
            // 显示飞船并设置初始位置
            spaceship.style.opacity = '1';
            spaceship.style.top = '50%';
            spaceship.style.left = '20%';
            
            // 飞船移动动画
            setTimeout(() => {
                spaceship.style.top = '30%';
                spaceship.style.left = '50%';
                
                // 宠物跳进飞船
                setTimeout(() => {
                    petCharacter.style.top = '30%';
                    petCharacter.style.left = '50%';
                    petCharacter.style.transform = 'translate(-50%, -50%) scale(0.7)';
                    
                    // 飞船带着宠物飞走
                    setTimeout(() => {
                        spaceship.style.top = '10%';
                        spaceship.style.left = '80%';
                        spaceship.style.transform = 'rotate(-30deg)';
                        petCharacter.style.opacity = '0';
                        
                        // 重置动画
                        setTimeout(() => {
                            spaceship.style.opacity = '0';
                            petCharacter.style.opacity = '1';
                            petCharacter.style.top = '';
                            petCharacter.style.left = '50%';
                            petCharacter.style.bottom = '20px';
                            petCharacter.style.transform = 'translateX(-50%)';
                            spaceship.style.transform = 'rotate(0deg)';
                        }, 2000);
                    }, 1000);
                }, 1000);
            }, 500);
        });
    </script>
</body>
</html>